package com.project.mapper;

import com.project.bean.CityBean;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ICityMapper {
    /**
     * 按照国家id查找城市集合
     * @param countryId 国家Id
     * @return          城市集合
     */
    @Select("select * from t_citys  where fk_countryId=#{countryId}")
    @ResultMap("cityMap")
    public List<CityBean> findByCountry(int countryId);
}
